import java.util.Random;
import java.util.Scanner;

public class Double1 {
    public static void main(String[] args) {
        Random rand=new Random();
        Scanner stdIn=new Scanner(System.in);
        System.out.print("行数：");
        int h=stdIn.nextInt();
        System.out.print("列数：");
        int w=stdIn.nextInt();
        int[][] x=new int[h][w];
        for (int i=0;i<h;i++) {
            for (int j = 0; j < w; j++) {
                x[i][j] = rand.nextInt(100);
                System.out.print("x["+i+"]["+j+"]="+x[i][j]+" ");
            }
            System.out.println();
        }
    }
}
